home *** CD-ROM | disk | FTP | other *** search
- /* Coolify text block - by Troels Walsted Hansen */
-
- options results
-
- YPOS
- currline = result
- XPOS
- currcolumn = result
- MSGLENGTH
- lastline = result
-
- call open(tfh, "t:UncoolTempFile", W)
-
- do i=currline to lastline
- SETPOS 1 i
- GETLINE
- line = result
-
- if(line ~= "") then do
- DELETELINES
- i = i-1
- end
- else break
-
- call writeln(tfh, line)
- end
-
- call close(tfh)
-
- address command "Coolify >nil: t:UncoolTempFile t:CoolTempFile"
- call delete("t:UncoolTempFile")
-
- SETPOS currcolumn currline
- INCLUDEFILE "t:CoolTempFile"
- call delete("t:CoolTempFile")
-
- SETPOS currcolumn currline
-